Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Rays

QuickDraw 3D defines a ray as a point of origin and a direction. A ray is defined by the TQ3Ray3D data type. Figure 18 shows a ray.

Figure 18 A ray

typedef struct TQ3Ray3D {
    TQ3Point3D                          origin;
    TQ3Vector3D                         direction;
} TQ3Ray3D;
origin
The origin of the ray.
direction
The direction of the ray.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |